<?php

return array(
    'controllers' => array(
        'invokables' => array(
            'MLM\Controller\Index' => 'MLM\Controller\IndexController',
            'MLM\Controller\Member' => 'MLM\Controller\MemberController',
            'MLM\Controller\Network' => 'MLM\Controller\NetworkController',
            'MLM\Controller\Agent' => 'MLM\Controller\AgentController',
            'MLM\Controller\Transaction' => 'MLM\Controller\TransactionController',
            'MLM\Controller\Admin' => 'MLM\Controller\AdminController',
            'MLM\Controller\Sn' => 'MLM\Controller\SnController',
            'MLM\Controller\Jsondata' => 'MLM\Controller\JsondataController',
            'MLM\Controller\Excel' => 'MLM\Controller\ExcelController',
            'MLM\Controller\Approval' => 'MLM\Controller\ApprovalController',
            'MLM\Controller\Report' => 'MLM\Controller\ReportController',
            'MLM\Controller\Product' => 'MLM\Controller\ProductController',
            'MLM\Controller\Sysconfig' => 'MLM\Controller\SysconfigController',
            'MLM\Controller\Commission' => 'MLM\Controller\CommissionController',
            'MLM\Controller\Investment' => 'MLM\Controller\InvestmentController',
            'MLM\Controller\Wallet' => 'MLM\Controller\WalletController',
            'MLM\Controller\Register' => 'MLM\Controller\RegisterController',
            'MLM\Controller\Test' => 'MLM\Controller\TestController',
        ),
    ),
    'router' => array(
        'routes' => array(
            'index' => array(
                'type' => 'segment',
                'options' => array(
                    'route' => '/index[/][:action][/:id]',
                    'constraints' => array(
                        'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
                        'id' => '[0-9]+',
                    ),
                    'defaults' => array(
                        '__NAMESPACE__' => 'MLM\Controller',
                        'controller' => 'Index',
                        'action' => 'index',
                    ),
                ),
            ),
            'member' => array(
                'type' => 'segment',
                'options' => array(
                    'route' => '/member[/][:action][/:id]',
                    'constraints' => array(
                        'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
                        'id' => '[0-9]+',
                    ),
                    'defaults' => array(
                        '__NAMESPACE__' => 'MLM\Controller',
                        'controller' => 'Member',
                        'action' => 'index',
                    ),
                ),
            ),
            'network' => array(
                'type' => 'Segment',
                'options' => array(
                    'route' => '/network[/][:action][/:id]',
                    'constraints' => array(
                        'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
                        'id' => '[0-9]+',
                    ),
                    'defaults' => array(
                        '__NAMESPACE__' => 'MLM\Controller',
                        'controller' => 'Network',
                        'action' => 'index',
                    ),
                ),
            ),
            'agent' => array(
                'type' => 'Segment',
                'options' => array(
                    'route' => '/agent[/][:action][/:id]',
                    'constraints' => array(
                        'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
                        'id' => '[0-9]+',
                    ),
                    'defaults' => array(
                        '__NAMESPACE__' => 'MLM\Controller',
                        'controller' => 'Agent',
                        'action' => 'index',
                    ),
                ),
            ),
            'transaction' => array(
                'type' => 'segment',
                'options' => array(
                    'route' => '/transaction[/][:action][/:id]',
                    'constraints' => array(
                        'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
                        'id' => '[0-9]+',
                    ),
                    'defaults' => array(
                        '__NAMESPACE__' => 'MLM\Controller',
                        'controller' => 'Transaction',
                        'action' => 'index',
                    ),
                ),
            ),
            'admin' => array(
                'type' => 'segment',
                'options' => array(
                    'route' => '/admin[/][:action][/:id]',
                    'constraints' => array(
                        'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
                        'id' => '[0-9]+',
                    ),
                    'defaults' => array(
                        '__NAMESPACE__' => 'MLM\Controller',
                        'controller' => 'Admin',
                        'action' => 'index',
                    ),
                ),
            ),
            'sn' => array(
                'type' => 'segment',
                'options' => array(
                    'route' => '/sn[/][:action][/:id]',
                    'constraints' => array(
                        'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
                        'id' => '[0-9]+',
                    ),
                    'defaults' => array(
                        '__NAMESPACE__' => 'MLM\Controller',
                        'controller' => 'Sn',
                        'action' => 'index',
                    ),
                ),
            ),
            'jsondata' => array(
                'type' => 'segment',
                'options' => array(
                    'route' => '/jsondata[/][:action][/:id]',
                    'constraints' => array(
                        'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
                        'id' => '[0-9]+',
                    ),
                    'defaults' => array(
                        '__NAMESPACE__' => 'MLM\Controller',
                        'controller' => 'Jsondata',
                        'action' => 'index',
                    ),
                ),
            ),
            'excel' => array(
                'type' => 'segment',
                'options' => array(
                    'route' => '/excel[/][:action][/:id]',
                    'constraints' => array(
                        'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
                        'id' => '[0-9]+',
                    ),
                    'defaults' => array(
                        '__NAMESPACE__' => 'MLM\Controller',
                        'controller' => 'Excel',
                        'action' => 'index',
                    ),
                ),
            ),
            'approval' => array(
                'type' => 'segment',
                'options' => array(
                    'route' => '/approval[/][:action][/:id]',
                    'constraints' => array(
                        'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
                        'id' => '[0-9]+',
                    ),
                    'defaults' => array(
                        '__NAMESPACE__' => 'MLM\Controller',
                        'controller' => 'Approval',
                        'action' => 'index',
                    ),
                ),
            ),
            'report' => array(
                'type' => 'segment',
                'options' => array(
                    'route' => '/report[/][:action][/:id]',
                    'constraints' => array(
                        'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
                        'id' => '[0-9]+',
                    ),
                    'defaults' => array(
                        '__NAMESPACE__' => 'MLM\Controller',
                        'controller' => 'Report',
                        'action' => 'index',
                    ),
                ),
            ),
            'product' => array(
                'type' => 'segment',
                'options' => array(
                    'route' => '/product[/][:action][/:id]',
                    'constraints' => array(
                        'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
                        'id' => '[0-9]+',
                    ),
                    'defaults' => array(
                        '__NAMESPACE__' => 'MLM\Controller',
                        'controller' => 'Product',
                        'action' => 'index',
                    ),
                ),
            ),
            'sysconfig' => array(
                'type' => 'segment',
                'options' => array(
                    'route' => '/sysconfig[/][:action][/:id]',
                    'constraints' => array(
                        'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
                        'id' => '[0-9]+',
                    ),
                    'defaults' => array(
                        '__NAMESPACE__' => 'MLM\Controller',
                        'controller' => 'Sysconfig',
                        'action' => 'index',
                    ),
                ),
            ),
            'commission' => array(
                'type' => 'segment',
                'options' => array(
                    'route' => '/commission[/][:action][/:id]',
                    'constraints' => array(
                        'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
                        'id' => '[0-9]+',
                    ),
                    'defaults' => array(
                        '__NAMESPACE__' => 'MLM\Controller',
                        'controller' => 'Commission',
                        'action' => 'index',
                    ),
                ),
            ),
            'investment' => array(
                'type' => 'segment',
                'options' => array(
                    'route' => '/investment[/][:action][/:id]',
                    'constraints' => array(
                        'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
                        'id' => '[0-9]+',
                    ),
                    'defaults' => array(
                        '__NAMESPACE__' => 'MLM\Controller',
                        'controller' => 'Investment',
                        'action' => 'index',
                    ),
                ),
            ),
            'wallet' => array(
                'type' => 'segment',
                'options' => array(
                    'route' => '/wallet[/][:action][/:id]',
                    'constraints' => array(
                        'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
                        'id' => '[0-9]+',
                    ),
                    'defaults' => array(
                        '__NAMESPACE__' => 'MLM\Controller',
                        'controller' => 'Wallet',
                        'action' => 'index',
                    ),
                ),
            ),
            'register' => array(
                'type' => 'segment',
                'options' => array(
                    'route' => '/register[/][:action][/:id]',
                    'constraints' => array(
                        'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
                        'id' => '[0-9]+',
                    ),
                    'defaults' => array(
                        '__NAMESPACE__' => 'MLM\Controller',
                        'controller' => 'Register',
                        'action' => 'index',
                    ),
                ),
            ),
            'test' => array(
                'type' => 'segment',
                'options' => array(
                    'route' => '/test[/][:action][/:id]',
                    'constraints' => array(
                        'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
                        'id' => '[0-9]+',
                    ),
                    'defaults' => array(
                        'controller' => 'MLM\Controller\Test',
                        'action' => 'index',
                    ),
                ),
            ),
        ),
    ),
    'view_manager' => array(
        'template_path_stack' => array(
            'member' => __DIR__ . '/../view',
        ),
        'template_map' => array(
            'layout/member' => __DIR__ . '/../view/layout/member.phtml',

        ),
    ),
    'databases' => array(
        'app' => array(
            'mlm' => array(
                'driver' => 'Pdo',
                'host' => 'localhost',
                'username' => 'root',
                'password' => '',
                'schema' => 'tradepointdb',
            ),
        ),
     ),

);
